<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 不能在函数内部重新声明参数。

        function func(arg) {
            let arg;
        }
        func() // 报错

        function func(arg) {
            {
                let arg;
            }
        }
        func() // 不报错
    </script>
</body>

</html>